#include <iostream>
#include <map>

int save(char* buf)
{
	int len = 0;
	*(int*)buf = 10;
	len += sizeof(10);
	buf += sizeof(10);
	*(int*)buf = 10;
	len += sizeof(10);
	buf += sizeof(10);
	*(int*)buf = 10;
	len += sizeof(10);
	buf += sizeof(10);
	*(int*)buf = 10;
	len += sizeof(10);
	buf += sizeof(10);
	return len;
}
int load(char* buf,int len)
{
	int i = 0;
	while(i < len)
	{
		int a = 0;
		a = *(int *)buf;
		i += sizeof(int);
		buf += sizeof(int);
		std::cout<<a<<" ";
	}
	std::cout<<std::endl;
}


class base
{
	public:
		base()
		{
			std::cout<<"base::base()"<<std::endl;
		}
		~base()
		{
			std::cout<<"base::~base()"<<std::endl;
		}
};

class dir : public base
{
	public:
	dir()
	{
		std::cout<<"dir::dir()"<<std::endl;
	}
	~dir()
	{
		std::cout<<"dir::～dir()"<<std::endl;
	}
};

#define abs(a,b) (a)>(b)?(a)-(b):(b)-(a)

void strsss(std::string str)
{
	std::cout<<str<<std::endl;
}

int main()
{
	char buf[1024];
	int len = save(buf)+1;
	load(buf,len);
	std::map<int,int> maps;
	maps.insert(std::make_pair(1,2));
	maps.insert(std::make_pair(2,2));
	maps.insert(std::make_pair(3,2));
	maps.insert(std::make_pair(4,2));
	maps.insert(std::make_pair(5,2));
	maps.insert(std::make_pair(6,2));
	maps.insert(std::make_pair(7,2));
	maps.insert(std::make_pair(8,2));
	maps.insert(std::make_pair(9,2));
	maps.insert(std::make_pair(10,2));
	maps.insert(std::make_pair(11,2));
	maps.insert(std::make_pair(12,2));
	maps.insert(std::make_pair(13,2));
	maps.insert(std::make_pair(14,2));
	maps.insert(std::make_pair(15,2));
	maps.insert(std::make_pair(16,2));
	maps.insert(std::make_pair(17,2));
	maps.insert(std::make_pair(18,2));
	maps.insert(std::make_pair(19,2));
	maps.insert(std::make_pair(20,2));
	maps.insert(std::make_pair(21,2));
	maps.insert(std::make_pair(22,2));
	maps.insert(std::make_pair(23,2));
	maps.insert(std::make_pair(24,2));
	maps.insert(std::make_pair(25,2));
	maps.insert(std::make_pair(26,2));
	maps.insert(std::make_pair(27,2));
	std::cout<<sizeof(maps)<<std::endl;
	dir* disrs = new dir();
	delete(disrs);
	int a = abs(100+10,100);
	std::cout<<a<<std::endl;

	char* fuck="fuck your mama";
	strsss(fuck);
	return 0;
}
